package com.ler.yrmall.search.dto;

import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author leron
 */
@Data
public class SkuEsModelDTO implements Serializable {

    private Long id;

    private Long spuId;

    private String name;

    private BigDecimal price;

    private String cover;

    private Long saleCount;

    private Boolean hasStock;

    private Long hotScore;

    private Long brandId;

    private Long categoryId;

    private String brandName;

    private String brandImg;

    private String categoryName;

    private List<Attrs> attrs;

    @Data
    public static class Attrs implements Serializable {

        private Long attrId;

        private String attrName;

        private List<String> attrValue;
    }

}
